package com.example.myapplication;


public class PropertyPairsBean {


    private float ratio;
    private int color;


    public PropertyPairsBean(int ratio,int color) {
        if (ratio > 1) {
            this.ratio = (float) ratio / 100;
        } else {
            this.ratio = (float) ratio;
        }
        this.color = color;
    }

    public float getRatio() {
        return ratio;
    }

    public void setRatio(float ratio) {
        this.ratio = ratio;
    }

    public int getColor() {
        return color;
    }
    public void setColor(int color) {
        this.color = color;
    }
}

